I have a script that I need to automate, so it's a .sh script which I want to run inside a python script: something like this:import osos.system('./script.sh -p 1234')The script script.sh needs the us...
I have a script that I need to automate, so it's a .sh script which I want to run inside a python script: something like this:import osos.system('./script.sh -p 1234')The script script.sh needs the us...
如下所示:source = ['C:\\Users\\admin\\Desktop\\pythonLearning']target_dir = 'C:\\Users\\admin\\Desktop'print(time.strftime('%Y%m%d%H%M%S'))target = target_dir + os.sep + time.strftime('%Y%m%d%H%M%S')...
why?# coding=utf-8#中文注释import osimport timeMajorObject = {'/cygdrive/e/eBooks/Linux','/cygdrive/e/eBooks/JAVA'}TargetDir = '/cygdrive/e/eBooks/'Target = TargetDir + time.strftime('%Y%m%d%H%M%S') +...